﻿<UserControl x:Class="Arcanum.Game.Client.Presentation.Views.ConsoleControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:vm="clr-namespace:Arcanum.Game.Client.Presentation.ViewModels"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"
             DataContext="{Binding Source={StaticResource Locator}, Path=Console}" 
             Initialized="InitializeViewModel">
    <DockPanel>
        <Label DockPanel.Dock="Top" Content="{Binding Path=Title}" />
        <DockPanel DockPanel.Dock="Bottom">
            <Button Content="[submit]" DockPanel.Dock="Right" 
                    Command="{Binding Path=ProcessInputCommand}" CommandParameter="{Binding Path=CommandLine}" />
            <TextBox x:Name="inputTextBox"  DockPanel.Dock="Left" Text="{Binding Path=CommandLine}" />
        </DockPanel>
        <ScrollViewer>
            <TextBox x:Name="outputTextBlock" />
        </ScrollViewer>
    </DockPanel>
</UserControl>
